package ee.project.redblacktree;

public class RBNode {

	public Comparable key;
	public RBNode parent;
	public RBNode left;
	public RBNode right;
	public int color;

	public RBNode(Comparable key) {
		this(key, null, null, null);
	}

	public RBNode(Comparable key, RBNode parent, RBNode left, RBNode right) {
		this.key = key;
		this.parent = parent;
		this.left = left;
		this.right = right;
	}
}
